# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>

pkgname=libnss_nis
pkgver=3.0
pkgrel=1
pkgdesc='NSS NIS plugin for glibc'
arch=(x86_64)
url='http://github.com/thkukuk/libnss_nis'
license=('LGPL2.1')
depends=(libnsl libtirpc)
source=($pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz)
md5sums=('f155a492a08da63bdb0f860af404cbed')

prepare() {
  cd $pkgname-$pkgver
  ./autogen.sh
}

build() {
  cd $pkgname-$pkgver
  ./configure --prefix=/usr
  make
}

package() {
  cd $pkgname-$pkgver
  make DESTDIR="$pkgdir" install
}
